<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>部门树  <{$smarty.const.WEB_NAME}></title>
	<link rel="stylesheet" type="text/css" href="./skin/<{$smarty.const.TPL_NAME}>/style.css" />
	<script type="text/javascript" src="./skin/<{$smarty.const.TPL_NAME}>/comm.js"></script> 
</head>
 <body>
     
   	   <table border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" align="center" class="msg_box" style="width:200px;">
         <tr class="tit">
		   <th align="center">所有员工</th>
         </tr>
		 <tr><td>
		 <table cellspacing="0" cellpadding="0" >
		 <{section name=loop loop=$departmentList}>
		 <tr>
		   <td>
		    <td width="40" align="center" valign="top"><input type="checkbox"  onclick="ChildAll('list_<{$departmentList[loop].id}>')" /></td>
		    <td>
	
                   <dt><{$departmentList[loop].name}></dt>
                     <dl id="list_<{$departmentList[loop].id}>">
							  	<{section name=list loop=$userList}>
								<{if $userList[list].departmentId == $departmentList[loop].id && $userList[list].qq != ''}>
								<dd><input type="checkbox" name="userList" value="<{$userList[list].qq}>" checked="true"/><{$userList[list].name}></dd>
								 <{/if}>
								<{/section}>
					 </dl>

			</td>
		  </tr>
		  <{/section}>
		  </table>
		 </td></tr>
		  <tr>
		    <td align="center">
				 <input type="button" value="确定" onclick="userListSubmit()" class="submit" style="width:60px;"/>
			     <input type="button" value="关闭" onclick="window.top.close();" class="submit" style="width:60px;"/>
			</td>
		  </tr>
       </table>
<script type="text/javascript">
<!--
	window.onload = function()
     {
         if( document.body.scrollWidth > (window.screen.availWidth-50) ){ 
             window.dialogWidth = (window.screen.availWidth-50).toString() + "px" 
         }else{ 
             window.dialogWidth = (document.body.scrollWidth +30).toString() + "px" 
         }     
         
         if( document.body.scrollHeight > (window.screen.availHeight-70) ){ 
             window.dialogHeight = (window.screen.availHeight-50).toString() + "px" 
         }else{ 
             window.dialogHeight = (document.body.scrollHeight +60).toString() + "px" 
         }     

         window.dialogLeft = ((window.screen.availWidth - document.body.clientWidth) / 2).toString() + "px" 
         window.dialogTop = ((window.screen.availHeight - document.body.clientHeight) / 2).toString() + "px"
     }

//-->
</script>
 </body>
</html>
